package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentNodeDetail = "online_student_node_detail"

func init() {
	var r = &OnlineStudentNodeDetail{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentNodeDetail struct {
	NodeDetailId  int    `column:"node_detail_id" primary:"true" modify:"false" json:"nodeDetailId" form:"nodeDetailId"`
	StudentId     int    `column:"student_id" modify:"true" json:"studentId" form:"studentId"`
	CourseId      int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	TermId        int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	ClassId       int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	ModuleId      int    `json:"moduleId" form:"moduleId" column:"module_id" modify:"true"`
	NodeId        int    `json:"nodeId" form:"nodeId" column:"node_id" modify:"true"`
	NodeType      int    `json:"nodeType" form:"nodeType" column:"node_type" modify:"true"`
	TimeUsed      int    `json:"timeUsed" form:"timeUsed" column:"time_used" modify:"true"`
	CompleteCount int    `json:"completeCount" form:"completeCount" column:"complete_count" modify:"true"`
	RightRate     int    `json:"rightRate" form:"rightRate" column:"right_rate" modify:"true"`
	OrderNum      int    `json:"orderNum" form:"orderNum" column:"order_num" modify:"true"`
	CreateTime    string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime    string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineStudentNodeDetail) Name() string {
	return RecordNameOnlineStudentNodeDetail
}
